#include "ConsoleController.h"

ConsoleController::ConsoleController(QObject *parent) :
    QObject(parent)
{
    consoleView = new ConsoleView();
    Console::print("#Szachy Pro Console#", consoleView);

    connect(consoleView, SIGNAL(commandSentSignal(QString)), this, SLOT(parseCommand(QString)));
}

void ConsoleController::start() {
    consoleView->show();
}

ConsoleController::~ConsoleController() {
    delete consoleView;
}

//Sloty
void ConsoleController::parseCommand(const QString &command) {

}

